package org.yuanqiframework.yuanqi.boot.sys.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 系统字典表
 *
 * @TableName sys_dict_option
 */
@Data
public class SysDictOptionDTO implements Serializable {
    /**
     * 字典类型ID
     */
    @NotNull(message = "[字典类型ID]不能为空")
    private Long typeId;
    /**
     * 字典标签
     */
    @NotBlank(message = "[字典标签]不能为空")
    @Size(max = 20, message = "编码长度不能超过20")
    @Length(max = 20, message = "编码长度不能超过20")
    private String label;
    /**
     * 字典值
     */
    @NotBlank(message = "[字典值]不能为空")
    @Size(max = 20, message = "编码长度不能超过20")
    @Length(max = 20, message = "编码长度不能超过20")
    private String value;
    /**
     * 父ID
     */
    private Long parentId;
    /**
     * 状态
     */
    @NotBlank(message = "[状态]不能为空")
    @Size(max = 10, message = "编码长度不能超过10")
    @Length(max = 10, message = "编码长度不能超过10")
    private String status;
    /**
     * 排序
     */
    @NotNull(message = "[排序]不能为空")
    private Integer sort;

}
